package com.sbtr.business.calibration.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sbtr.business.calibration.entity.Calibration;
import com.sbtr.open.calibration.dto.CalibrationCountDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CalibrationMapper extends BaseMapper<Calibration> {

    /**
     * 在对应的“CalibrationMapper.xml”文件进行逻辑删除，仅仅修改
     * @param id
     */
    void updateIsAvailableById(@Param("id") Long id);

    List<CalibrationCountDto> txtDetailCompleteCount(@Param("calibrationIds") List<Long> calibrationIds);

    List<CalibrationCountDto> txtDetailNOCompleteCount(@Param("calibrationIds") List<Long> calibrationIds);

}
